package com.cvit.dao;

import com.cvit.model.Examinationtable;
import com.cvit.model.ExaminationtableExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ExaminationtableMapper {
    long countByExample(ExaminationtableExample example);

    int deleteByExample(ExaminationtableExample example);

    int deleteByPrimaryKey(String id);

    int insert(Examinationtable record);

    int insertSelective(Examinationtable record);

    /**
     * 查询考场表单（包含学生表信息）
     * */
    List<Examinationtable> selectByExample(ExaminationtableExample example);

    Examinationtable selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Examinationtable record, @Param("example") ExaminationtableExample example);

    int updateByExample(@Param("record") Examinationtable record, @Param("example") ExaminationtableExample example);

    int updateByPrimaryKeySelective(Examinationtable record);

    int updateByPrimaryKey(Examinationtable record);
    
    /**
   	 * 按学生号、身份证号查询准考证信息 Ws
   	 * */
    List<Examinationtable> selectEamineeId(Examinationtable record);
    /**
     * selectcardId
     * */
    List<Examinationtable> selectcardId(Examinationtable record);
    
    List<Examinationtable> selectByEamineeId(String eamineeId);
    /**
     * 查询考场表单（包含学生表信息）
     * */
   	List<Examinationtable> selectAll(ExaminationtableExample example);

   	/**
   	 * 根据考生号(eaminee_id)、身份证号(card_id)、准考号(student_number)查询
   	 * */
   	List<Examinationtable> selectExaminationtableBy(Examinationtable record);

   	/**
   	 * 按eamineeId删除
   	 * */
   	void deleteByEamineetableId(String eamineeId);

   	/**
   	 * 按eamineeId（考生号）查询
   	 * */
   	List<Examinationtable> selectByEamineetableId(String eamineeId);
}